package com.wh.calculator;

import java.util.Scanner;

public class JiSuan {
	

	public static void main(String[] args) {
		
		Addition ad = new Addition();
		Scanner input = new Scanner(System.in);
		System.out.println("请输入一个数值：");
		int data = input.nextInt();
		System.out.println("请输入一个符号：");
		String fu = input.next();
		System.out.println("请输入一个数值：");
		int data2 = input.nextInt();
		
	
		if(fu.equals("+")) {
			ad.add(data, data2, fu);
		}else if(fu.equals("-")) {
			ad.de(data, data2, fu);
		}else if(fu.equals("*")) {
			ad.cen(data, data2, fu);
		}else if(fu.equals("/")) {
			ad.chu(data, data2, fu);
		}
	}
	
}
